Student_management_system
Student Management System
Overview
The Student Management System is a simple web application designed to manage students’ information using CRUD (Create, Read, Update, Delete) functionalities. It allows users to add, view, update, and delete student records. This project is built using Python and Django framework.
Features
- Add new student records
- View all student records
- Update existing student records
- Delete student records
Technologies Used
- Python
- Django
- SQLite (default database for Django)
- HTML/CSS and Bootstrap for frontend
Installation
Prerequisites
- Python 3.x installed
- Django installed (
pip install django)
Steps
Clone the repository:
git clone https://github.com/yourusername/Student_management_system.git cd Student_management_systemCreate a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`Install dependencies:
pip install -r requirements.txtRun migrations:
python manage.py migrateRun the development server:
python manage.py runserverAccess the application:
Open your web browser and go to
http://127.0.0.1:8000
Usage
Add a New Student
- Click on the “Add Student” link in the navigation tab.
- Fill out the form with the student’s information.
- Click “Submit” to save the new student record.
View Students
- Click on the “View” button link in the students row.
- A students info will be displayed.
Update a Student
- Click on the “Edit” button link in the students row you want to update.
- Update the student’s information in the form.
- Click “Submit” to save the changes.
Delete a Student
- Click on the “Delete” button link in the student row you want to delete.
- Confirm the deletion when prompted.
Contributing
- Fork the repository
- Create a new branch (git checkout -b feature-branch)
- Commit your changes (git commit -am ‘Add new feature’)
- Push to the branch (git push origin feature-branch)
- Create a new Pull Request
Contact
If you have any questions or suggestions, feel free to open an issue or contact the project maintainers.
This README.md file provides a clear overview of the project, how to install and run it, and how to use its features. Adjust the repository link and other details as needed for your specific project.
Source Code: manage.py
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()